import request from '@/utils/request'

// 查询渠道对应技术员列表
export function listDealeruserjs(query) {
  return request({
    url: '/DealerMain/dealeruserjs/list',
    method: 'get',
    params: query
  })
}

// 查询渠道对应技术员详细
export function getDealeruserjs(userId) {
  return request({
    url: '/DealerMain/dealeruserjs/' + userId,
    method: 'get'
  })
}

// 新增渠道对应技术员
export function addDealeruserjs(data) {
  return request({
    url: '/DealerMain/dealeruserjs',
    method: 'post',
    data: data
  })
}

// 修改渠道对应技术员
export function updateDealeruserjs(data) {
  return request({
    url: '/DealerMain/dealeruserjs',
    method: 'put',
    data: data
  })
}

// 删除渠道对应技术员
export function delDealeruserjs(userId) {
  return request({
    url: '/DealerMain/dealeruserjs/' + userId,
    method: 'delete'
  })
}
